#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int countMatches(char*** items, int itemsSize, int* itemsColSize, char* ruleKey, char* ruleValue) {
    int idx = 0;
    int cnt = 0;
    if (ruleKey[0] == 't')
        idx = 0;
    else if (ruleKey[0] == 'c')
        idx = 1;
    else
        idx = 2;
    int i = 0;
    for (i = 0; i < itemsSize; i++)
    {
        if (strcmp(items[i][idx], ruleValue) == 0)
            cnt++;
    }
    return cnt;
}


int main()
{

	return 0;
}